package pl.javarsovia.javarsovia4android.menu.commands;

import android.app.Activity;
import android.content.Intent;
import pl.javarsovia.R;
import pl.javarsovia.javarsovia4android.activities.SpeakersActivity;
import pl.javarsovia.javarsovia4android.menu.ButtonCommand;

/**
 * @author mgrzechocinski
 * @since 2010-06-13
 */
public class SpeakersButtonCommand implements ButtonCommand {

	private Activity activity;

	public SpeakersButtonCommand(Activity activity) {
		this.activity = activity;
	}

	@Override
	public void buttonClicked() {
		activity.startActivity(new Intent(activity, SpeakersActivity.class));
	}

	@Override
	public int getButtonResId() {
		return R.id.button_menu_speakers;
	}
}
